exports.ExamBySubject_table = function(_args) {
	
    
	 var viewpanel = Ti.UI.createView({
		height:_args.height,
		width:'50%',//Titanium.Platform.displayCaps.platformWidth/2,
		top:_args.top,
		backgroundColor:'transparent',
		borderRadius:0,
		borderColor:'black',
		borderWidth:1,
		touchEnabled:true,
	});
	 
	
		 
	
	var lbleft = Titanium.UI.createLabel({
       text:_args.text,
       color:'Black',
       left: 78,
       top:11,
       //bottom:11,
       font:{
			fontSize:Ti.App.Properties.getString('fontsizeDefault'),
			fontWeight:'bold'
		},
       
    });
    viewpanel.add(lbleft)
	

	var imleft = Ti.UI.createImageView({
		image:_args.image,
	    left: 11,
	    top: 11,
	    height:55,
	    width: 55,
	    
	});
	viewpanel.add(imleft)
	
	
	
	viewpanel.addEventListener('touchstart', function(e)
	{
	   viewpanel.backgroundColor=_args.backgroundColorSection;//'#2981a3';
	});
	 
	viewpanel.addEventListener("touchend", function(e)
	{
		viewpanel.backgroundColor='transparent';
	});
	viewpanel.addEventListener("touchcancel", function(e)
	{
		viewpanel.backgroundColor='transparent';
	});
	

	viewpanel.addEventListener("click", function(e)
	{
		
	
		Ti.App.fireEvent('ExamSubject:CreateExamDetail',
																{
																	LectureId:_args.LectureId,
																	TypeID:_args.TypeID,
																	LectureName:_args.LectureName,
																	Price:_args.Price,
																	TeacherImage:_args.TeacherImage,
																	IsSee:_args.IsSee,
																	IsDownload:_args.IsDownload
																}); 
		viewpanel.backgroundColor='transparent';
	});
	
	
	var imstart = Ti.UI.createImageView({
		image:_args.start,
	    left: 11,
	    bottom: 11,
	    height:20,
	    width: 145,
	    
	});
	viewpanel.add(imstart)
	
	/*
	var price=_args.Price+' VNĐ',colorprice='#1e6cc1'
	if(_args.IsSee==1) {price='Đã mua';colorprice='Red'}
	var lbPrice = Titanium.UI.createLabel({
       text:price,
       color:colorprice,
       right: 11,
       bottom:11,
       font:{
			fontSize:Ti.App.Properties.getString('fontsizeDefault'),
			fontWeight:'bold'
		},
       
    });
    viewpanel.add(lbPrice)
    */
    
	return viewpanel;
};